import request from '@/relyon/request'

// 获取歌词歌曲
export function getMusicLyricMp3(rid){
    return request({
        url : '/music/lyricMp3',
        method : 'get',
        params : {
            rid
        }
    })
}

// 获取歌曲
export function getMusicMp3(rid){
    return request({
        url : '/music/mp3',
        method : 'get',
        params : {
            rid
        }
    })
}

// 获取mv
export function getMusicMp4(rid){
    return request({
        url : '/music/mp4',
        method : 'get',
        params : {
            rid
        }
    })
}

// 获取歌词
export function getMusicLyric(rid){
    return request({
        url : '/music/lyric',
        method : 'get',
        params : {
            rid
        }
    })
}

// 音乐播放异常
export function getError(rid, type){
    return request({
        url : '/music/error',
        method : 'get',
        params : {
            rid,
            type
        }
    })
}

// MV播放异常
export function getErrorMV(rid, type){
    return request({
        url : '/music/errorMV',
        method : 'get',
        params : {
            rid,
            type
        }
    })
}

export default {
    getMusicLyricMp3,
    getMusicLyric,
    getMusicMp3,
    getMusicMp4,
    getError,
    getErrorMV
}